package sjms.construction.decorator;

/**
 * @ClassName:
 * @Description:在原有行为的基础上进行扩充
 * @Author fcb
 * @Date 2020/6/1 17:01
 */
public class RedShapDecorator extends ShapeDecorator {

    public RedShapDecorator(Shape shape){
        super(shape);
    }

    public void draw(){
        shape.draw();
        this.extraOperation();
    }


    private void extraOperation(){
        System.out.println("新增的行为");
    }
}
